//
//  UIColor+Hex.h
//  YanXiuWang
//
//  Created by 招利 李 on 16/11/22.
//  Copyright © 2016年 小分队. All rights reserved.
//

#import <UIKit/UIKit.h>

#define Color(v) [UIColor colorWithValue:v]

@interface UIColor (Hex)

+ (UIColor *)colorWithValue:(uint32_t)value;
+ (UIColor *)colorWithString:(NSString *)value;

- (NSString *)HEXString;

/* @param value is 0 ~ 1 */
- (UIColor *)darkThanCurrent:(CGFloat)value;

/* @param value is 0 ~ 1 */
- (UIColor *)lightThanCurrent:(CGFloat)value;

@end
